#ifndef _COFF_BUCKET_H_
#define _COFF_BUCKET_H_

#include <vector>
#include "Defines.h"

using namespace std;

class CCoffItem
{
public:

	CCoffItem( char _coff[REF_PIXEL_NUMBER], double _psnr )
	{
		memcpy( coff, _coff, sizeof(char) * REF_PIXEL_NUMBER );
		psnr = _psnr;
	}

	char coff[REF_PIXEL_NUMBER];
	double psnr;
};

class CCoffBucket
{
public:
	CCoffBucket( int size );
	~CCoffBucket();

	void Dump();
	bool FindDuplication( char * coff );

public:
	bool Insert( CCoffItem * item );

	vector<CCoffItem*> * m_pvecCoffList;

	int m_iMaxSize;
};


#endif // _COFF_BUCKET_H_
